<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"></meta>
    <title>editinfo</title>
</head>
<body>
<editinfo th:fragment="editinfo">
    <button type="button" class="edit" data-toggle="modal" data-target="#editMyInfo" style="display: none"></button>
    <div class="modal fade bs-example-modal-lg" id="editMyInfo" tabindex="-1" role="dialog"
         aria-labelledby="myLargeModalLabel">
        <div class="modal-dialog modal-lg" style="top: 20%" role="document">
            <div class="modal-content " style="width: 100%">
                <div class="modal-header">
                    <h5 class="modal-title" id="gridSystemModalLabel">用户名/密码修改(密码框为空则不修改密码)</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body text-center">
                    <div class="form-group">
                        <label>
                            <input class="form-control userName" type="text" placeholder="用户名" required="required"
                                   name="userName" autocomplete="off"
                                   onkeyup="this.value=this.value.replace(/\s+/g,'')"/>
                        </label>
                    </div>
                    <div class="form-group">
                        <label>
                            <input class="form-control IwtOralPsd" type="password" placeholder="原密码" required="required"
                                   name="password" autocomplete="off"
                                   onkeyup="this.value=this.value.replace(/\s+/g,'')">
                        </label>
                    </div>
                    <div class="form-group">
                        <label>
                            <input class="form-control IwtNewPsd" type="password" placeholder="新密码" required="required"
                                   name="password" autocomplete="off"
                                   onkeyup="this.value=this.value.replace(/\s+/g,'')">
                        </label>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" onclick="submit()">修改</button>
                </div>
            </div>
        </div>
    </div>
</editinfo>
</body>
</html>